package net.luoran.dvm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import net.luoran.dvm.common.base.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 数据大屏
 * </p>
 *
 * @author MyBatisPlusGenerater
 * @since 2020-10-29
 */
@TableName("data_panel")
@Data
public class PanelDO extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "panel_id", type = IdType.AUTO)
    private Integer panelId;
    /**
     * 组id
     */
    @TableField("panel_group_id")
    private Integer panelGroupId;
    /**
     * 组名称
     */
    @TableField("panel_name")
    private String panelName;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 0正常 1删除
     */
    @TableField("del_flag")
    private String delFlag;

    /**
     * 封面文件id
     */
    @TableField("file_id")
    private String fileId;

    /**
     * 封面url
     */
    @TableField("file_url")
    private String fileUrl;

    /**
     * 背景图片id
     */
    @TableField("background_id")
    private String backgroundId;

    /**
     * 背景图片url
     */
    @TableField("background_url")
    private String backgroundUrl;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 封面设置 0 自动截图 ,1手动上传
     */
    @TableField("cover_setting")
    private Integer coverSetting;

    /**
     * 默认配置
     */
    @TableField("config_json")
    private String configJson;

    @TableField(exist = false)
    private List<PanelModuleDO> children;

    @TableField(exist = false)
    private String accountGroupId;

}
